<?php
//query tours
$query=new WP_Query(array(
	'post_type' =>'tour',
	'showposts' => -1,
	'meta_key'    => '_thumbnail_id',
));

$destination = 'es. Roma';
if ($_GET['destination'] != '') {
	$destination = $_GET['destination'];
}

if($query->have_posts()) {
?>
<div class="tour-search-form">
	<?php if(get_option('themex_search_form_title')) { ?>
	<div class="form-title">
		<h4><?php echo get_option('themex_search_form_title'); ?></h4>
	</div>
	<?php } ?>
	<form role="search" method="get" id="searchform" action="<?php echo home_url(); ?>">
		<div class="field-container">
			<input id="destination" type="text" name="destination" class="reverse" value="<?php echo $destination; ?>" />
		</div>	
		<div class="form-button">
			<div class="button-container">
				<a href="#" class="button submit"><span><?php _e('Cerca','midway'); ?></span></a>
			</div>
		</div>					
	</form>
</div><!-- tour search form -->
<?php } ?>